$color-main:var(--colorMain);
$color-fff:var(--colorfff);
$color_333:var(--color333);
$color_999:var(--color999);
$main_bg: var(--mainBg);
$menuBg:var(--menuBg);
$menuActiveBg:var(--menuActiveBg);

#app {
  // 主体区域
  .main-container {
    height: 100%;
    transition: margin-left .28s;
    margin-left: 220px;
    position: relative;
    background-color: $main_bg;
  }
  // 侧边栏
  .sidebar-container {
    transition: width 0.28s;
    width: 220px !important;
    height: 100%;
    position: fixed;
    font-size: 0;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    //reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }
    .el-scrollbar__bar.is-vertical{
      right: 0;
    }
    .scrollbar-wrapper {
      overflow-x: hidden!important;
      .el-scrollbar__view {
        height: 100%;
      }
    }
    .is-horizontal {
      display: none;
    }
    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }
    .svg-icon {
      margin-right: 16px;
    }
    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }
    .is-active > .el-submenu__title{
      color: #666!important;
    }
  }
  .hideSidebar {
    .sidebar-container {
      width: 40px !important;
    }
    .main-container {
      margin-left: 40px;
    }
    .submenu-title-noDropdown {
      padding-left: 10px !important;
      position: relative;
      .el-tooltip {
        padding: 0 10px !important;
      }
    }
    .el-submenu {
      overflow: hidden;
      &>.el-submenu__title {
        padding-left: 10px !important;
        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }
    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }
  .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
  .sidebar-container .el-submenu .el-menu-item,.el-menu .el-menu-item {
    min-width: 220px !important;
    color: #666;
    background-color: $color-fff !important;
    &:hover {
      background-color: $menuActiveBg !important;
      span{
        font-size: 16px;
      }
      i{
        font-size: 18px;
      }
    }
    &.is-active{
      background-color: $menuActiveBg !important;
      color: $color-main !important;
      //border-left:4px solid #06a4fe;
    }
    &.is-active:before{
      display: inline-block;
      content: '';
      width: 4px;
      height: 100%;
      background-color: $color-main;
      position: absolute;
      left: 0;
    }
  }
  .el-menu--collapse .el-menu .el-submenu {
    min-width: 220px !important;
  }

  //适配移动端
  .mobile {
    .main-container {
      margin-left: 0px;
    }
    .sidebar-container {
      transition: transform .28s;
      width: 220px !important;
    }
    &.hideSidebar {
      .sidebar-container {
        transition-duration: 0.3s;
        transform: translate3d(-180px, 0, 0);
      }
    }
  }
  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}
.el-menu--vertical{
  & >.el-menu{
    .svg-icon{
      margin-right: 16px;
    }
  }
}

/*------breadcrumb--------*/
.app-breadcrumb.el-breadcrumb {
  display: inline-block;
  font-size: 14px;
  line-height: 50px;
  margin-left: 10px;
  min-width: 216px;
  .no-redirect {
    color: var(--routeLink);
    cursor: text;
  }
}
.el-breadcrumb__inner a {
  color: var(--routeLink);
  font-weight: normal;
}
.el-breadcrumb__inner a:hover {
  color: $color-main;
}
.el-breadcrumb__item:last-child .el-breadcrumb__inner span{
  color: var(--colorMain);
}
